From Rick: Add iconismarker.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 26 Sep 2003 13:12:28 +0000 (13:12 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 26 Sep 2003 13:12:28 +0000 (13:12 +0000)
gpsbabel/tiger.c

index 1f527361bf081b8f91818933cc7d42d0427e9e2c..8100299fce91515fbd2f7a22926a4340944b494f 100644 (file)
@@ -44,6 +44,7 @@ static char *oldmarker  = "redpin";
 static char *newmarker  = "greenpin";
 static char *unfoundmarker  = "bluepin";
 static char *suppresswhite = NULL;
+static char *iconismarker = NULL;
 
 int scalev;
 int short_length;
@@ -83,6 +84,8 @@ arglist_t tiger_args[] = {
                ARGTYPE_INT},
        {"ypixels", &ypixels, "Height in pixels of map.",
                ARGTYPE_INT},
+       {"iconismarker", &iconismarker,
+               "The icon description is already the marker", ARGTYPE_BOOL },
 #if CLICKMAP
        {"clickmap", &clickmap, "Generate Clickable map web page.",
                ARGTYPE_BOOL},
@@ -157,7 +160,9 @@ tiger_disp(const waypoint *wpt)
        double lat = wpt->position.latitude.degrees;
        double lon = wpt->position.longitude.degrees;
 
-       if (wpt->icon_descr && strstr(wpt->icon_descr, "-unfound"))
+       if (iconismarker)
+               pin = wpt->icon_descr ? wpt->icon_descr : "";
+       else if (wpt->icon_descr && strstr(wpt->icon_descr, "-unfound"))
                pin = unfoundmarker;
        else if (wpt->creation_time > time(0) - 3600 * 24 * thresh_days)
                pin = newmarker;